<?php $this->load->view("_inc/header_login"); ?>
<script>
    $(document).ready(function(){
        $("#login").validate();
    });
</script>

<?php $hidden = array('evento' => $evento) ?>

<div id="login">
	<div id="titulo"><span>Login</span></div>
	<div id="formulario">
	<?=form_open('usuario/logar', 'id="login"', $hidden);?>
		<table>
    	<tr>
    		<td><label>Email:</label></td>
    		<td><?=form_input('email', '', 'class = "required email"');?></td>
    	</tr>
    	<tr>
    		<td><label>Senha:</label></td>
    		<td><?=form_password('senha', '', 'class="required" minlength="7"');?></td>
    	</tr>
    	
    	<tr>
    		<td><?=form_submit('', 'Entrar');?></td>
    		<td><?=anchor('usuario/registro/'.$evento,'Registrar'); ?></td>
    	</tr>
    	</table>
	<?=form_close()?>
	</div>
</div>

<?php $this->load->view("_inc/footer"); ?>